package com.baidu.stater;

import com.baidu.fsg.uid.impl.DefaultUidGenerator;
import com.baidu.fsg.uid.worker.DisposableWorkerIdAssigner;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("com.baidu.fsg.uid.worker.dao") //扫描百度的dao
public class IdConfig {

    @Bean
    public DisposableWorkerIdAssigner disposableWorkerIdAssigner(){
        return  new DisposableWorkerIdAssigner();
    }

//    public DefaultUidGenerator initDefultUid(DisposableWorkerIdAssigner disposableWorkerIdAssigner){
//
//    }
}
